<template>
  <div class="weekly-report-management">
    <div v-if="device !== 'mobile'" class="pc">
      <pcIndex ref="pcIndex"></pcIndex>
    </div>

    <div v-else class="mobile">
      <mobileIndex ref="mobileIndex" ></mobileIndex>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import pcIndex from "./pc/index.vue";
import mobileIndex from "./mobile/index.vue";

export default {
  name: "WeeklyReportManagement",
  components: { pcIndex, mobileIndex },
  data() {
    return {
      
    };
  },
  methods: {
  },
  computed: {
    ...mapGetters(["device"]),
  },
  created() {
  },
  watch: {
    device(newVal, oldVal) {
      this.$nextTick(() => {
        // if (this.device === "mobile") {
        //   this.queryParams.isGroupData = this.active === 'groupDetailsMoilb'
        //   this.$refs[this.active].getList();
        // } else {
        //   this.$refs[this.activeName].getList();
        // }
      });
    },
  },
};
</script>

<style scoped lang="scss">
</style>
